/*
 * @Author: zxf 
 * @Date: 2017-09-16 10:42:37 
 * @Last Modified by: zhuxiaofang
 * @Last Modified time: 2018-03-27 10:00:47
 */
(function (doc, win) {
    var docEl = doc.documentElement,
        resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
        recalc = function () {
            var clientWidth = docEl.clientWidth;
            if (!clientWidth) return;
            docEl.style.fontSize = 100 * (clientWidth /4800) + 'px';
            

        };
    if (!doc.addEventListener) return;
    win.addEventListener(resizeEvt, recalc, false);
    doc.addEventListener('DOMContentLoaded', recalc, false);
})(document, window);

function adaptive() {
    var doc = document,
        win = window,
        resizeEvent = "orientationchange" in window ? "orientationchange" : "resize",
        recalc = function() {
            var winHeight = win.innerHeight;
            if (!winHeight) return;
        };
    if (!doc.addEventListener) return;
    win.addEventListener(resizeEvent, recalc, false);
    doc.addEventListener("DOMContentLoaded", recalc, false);
}
adaptive();


function leftnavHeight(){
    setInterval(function(){
        var winHeight = window.innerHeight,
            proHeight = $('.proRight').height(),
            leftNav = $('.leftNav');
        if(proHeight < winHeight){
            $('.leftNav').height(winHeight);
        }else{
            $('.leftNav').height(proHeight);
        }
    },10)
}
// leftnavHeight();

$.datepicker.regional['zh-CN'] = {
    closeText: '关闭',
    // prevText: '<上月',
    // nextText: '下月>',
    // currentText: '今天',
    monthNames: ['一月','二月','三月','四月','五月','六月',
    '七月','八月','九月','十月','十一月','十二月'],
    monthNamesShort: ['一','二','三','四','五','六',
    '七','八','九','十','十一','十二'],
    dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],
    dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'],
    dayNamesMin: ['日','一','二','三','四','五','六'],
    dateFormat: 'yy-mm-dd', firstDay: 1,
    isRTL: false,
    
};
$.datepicker.setDefaults($.datepicker.regional['zh-CN']);

// $('.address-input').focus(function(){
//     alert('aaa')
//     $('.address-ul').show();
// });
